package cn.mesmile.flow.config.test;

import lombok.Data;

/**
 * @author zb
 * @date 2020/12/8 15:12
 * @Description
 */
@Data
public class Student {

    private String name;

    private Integer age;

    private PersonJob personJob;

    public Student(String name,Integer age) {
        this.name = name;
        this.age = age;
    }


    public void init(){
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        System.out.println(">>>>>>>>>>>>>> 初始化方法被调用");
    }

    public void destroy(){
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        System.out.println(">>>>>>>>>>>>>> 销毁方法被调用");
    }


}
